$(document).ready( function () {

	$('.menu').hover( function () {
		$(this).children('.submenu').clearQueue().slideDown( $(this).children('.submenu').children('a').length * 100 );
	}, function() {
		$(this).children('.submenu').clearQueue().slideUp( $(this).children('.submenu').children('a').length * 100 );
	});

});